home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-10-26 | 2.1 KB | 39 lines | [TEXT/$Tcl] |
-
-
- When Extended Tcl is installed, the standard runtime files
- are places in the Tcl master directory, which is configured
- when Tcl is built. This master directory normally contains
- the Tcl initialization file (TclInit.tcl), the standard Tcl
- library files (tcl.tlib, tk.tlib) and the help files. The
- Tcl master directory is named after the version of Tcl it is
- associated with, e.g. /usr/local/tclX7.0a. The path to the
- Tcl master directory is available from the info library com-
- mand.
-
- The first step in initializing the Tcl shell is to locate
- the Tcl initialization file, normally TclInit.tcl. If an
- environment variable TCLINIT exists, it contains the path to
- the Tcl initialization file. If the TCLINIT environment
- variable is not set, the file TclInit.tcl is used from the
- default Tcl master directory.
-
- Tcl then evaulates the Tcl initialization file. The
- auto_path variable is initialized to the Tcl master direc-
- tory and may be augmented by the intialization file or the
- application. Other procedures and variables used by the
- Extended Tcl shell are also defined by this file.
-
- If the Tcl is invoked interactively, it will source a file
- named .tclrc in the user's home directory, if it exists.
- Tcl is viewed primarily as a programming language, not an
- interactive shell, so the .tclrc is intended for use for
- loading development utilities, not to support applications,
- which should not have to rely on the user's environment in
- such a manner.
-
- Some applications, such as wishx, have additional initiali-
- zation files. They may have environment variables that
- override the default location of thise initialization files.
- Tcl global variable auto_path will contain the directories
- contain those initialization files.
-